<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    @include('layout.statistics')
    <title>意见反馈</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta name="description" content="LmCjl的jQuery工具致力于收集提供jQuery插件和提供各种jQuery特效的详细使用方法,在线预览，jQuery插件下载及教程">
    <meta name="keywords" content="jQuery,jQuery特效,jQuery ui,jQuery插件,jQuery 教程,在线工具,网站在线工具,网页模板">
    <link href="/feedback/style.css" rel="stylesheet" type="text/css">
    <style data-id="immersive-translate-input-injected-css">
        .immersive-translate-input {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            z-index: 2147483647;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .immersive-translate-input-loading {
            --loading-color: #f78fb6;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            display: block;
            margin: 12px auto;
            position: relative;
            color: white;
            left: -100px;
            box-sizing: border-box;
            animation: immersiveTranslateShadowRolling 1.5s linear infinite;
        }

        @keyframes immersiveTranslateShadowRolling {
            0% {
                box-shadow: 0px 0 rgba(255, 255, 255, 0), 0px 0 rgba(255, 255, 255, 0), 0px 0 rgba(255, 255, 255, 0), 0px 0 rgba(255, 255, 255, 0);
            }

            12% {
                box-shadow: 100px 0 var(--loading-color), 0px 0 rgba(255, 255, 255, 0), 0px 0 rgba(255, 255, 255, 0), 0px 0 rgba(255, 255, 255, 0);
            }

            25% {
                box-shadow: 110px 0 var(--loading-color), 100px 0 var(--loading-color), 0px 0 rgba(255, 255, 255, 0), 0px 0 rgba(255, 255, 255, 0);
            }

            36% {
                box-shadow: 120px 0 var(--loading-color), 110px 0 var(--loading-color), 100px 0 var(--loading-color), 0px 0 rgba(255, 255, 255, 0);
            }

            50% {
                box-shadow: 130px 0 var(--loading-color), 120px 0 var(--loading-color), 110px 0 var(--loading-color), 100px 0 var(--loading-color);
            }

            62% {
                box-shadow: 200px 0 rgba(255, 255, 255, 0), 130px 0 var(--loading-color), 120px 0 var(--loading-color), 110px 0 var(--loading-color);
            }

            75% {
                box-shadow: 200px 0 rgba(255, 255, 255, 0), 200px 0 rgba(255, 255, 255, 0), 130px 0 var(--loading-color), 120px 0 var(--loading-color);
            }

            87% {
                box-shadow: 200px 0 rgba(255, 255, 255, 0), 200px 0 rgba(255, 255, 255, 0), 200px 0 rgba(255, 255, 255, 0), 130px 0 var(--loading-color);
            }

            100% {
                box-shadow: 200px 0 rgba(255, 255, 255, 0), 200px 0 rgba(255, 255, 255, 0), 200px 0 rgba(255, 255, 255, 0), 200px 0 rgba(255, 255, 255, 0);
            }
        }


        .immersive-translate-search-recomend {
            border: 1px solid #dadce0;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 16px;
            position: relative;
            font-size: 16px;
        }
        .immersive-translate-search-enhancement-en-title {
            color: #4d5156;
        }
        /* dark */
        @media (prefers-color-scheme: dark) {
            .immersive-translate-search-recomend {
                border: 1px solid #3c4043;
            }
            .immersive-translate-close-action svg {
                fill: #bdc1c6;
            }

            .immersive-translate-search-enhancement-en-title {
                color: #bdc1c6;
            }
        }


        .immersive-translate-search-settings {
            position: absolute;
            top: 16px;
            right: 16px;
            cursor: pointer;
        }

        .immersive-translate-search-recomend::before {
            /* content: " "; */
            /* width: 20px; */
            /* height: 20px; */
            /* top: 16px; */
            /* position: absolute; */
            /* background: center / contain url(''); */
        }

        .immersive-translate-search-title {}

        .immersive-translate-search-title-wrapper {}

        .immersive-translate-search-time {
            font-size: 12px;
            margin: 4px 0 24px;
            color: #70757a;
        }

        .immersive-translate-expand-items {
            display: none;
        }

        .immersive-translate-search-more {
            margin-top: 16px;
            font-size: 14px;
        }

        .immersive-translate-modal {
            display: none;
            position: fixed;
            z-index: 1000000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0, 0, 0);
            background-color: rgba(0, 0, 0, 0.4);
        }

        .immersive-translate-modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            border-radius: 10px;
            width: 80%;
            max-width: 500px;
            font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu",
            "Cantarell", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
            "Segoe UI Symbol", "Noto Color Emoji";
        }

        .immersive-translate-modal-title {
            font-size: 1.5rem;
            font-weight: 500;
            margin-bottom: 20px;
            color: hsl(205, 20%, 32%);
        }

        .immersive-translate-modal-body {
            color: hsl(205, 20%, 32%)
        }

        .immersive-translate-close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .immersive-translate-close:hover,
        .immersive-translate-close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        .immersive-translate-modal-footer {
            display: flex;
            justify-content: flex-end;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .immersive-translate-btn {
            color: #fff;
            background-color: #ea4c89;
            border: none;
            font-size: 14px;
            margin: 5px;
            padding: 10px 20px;
            font-size: 1rem;
            border-radius: 5px;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .immersive-translate-cancel-btn {
            /* gray color */
            background-color: rgb(89, 107, 120);
        }

        .immersive-translate-btn:hover {
            background-color: #f082ac;
        }

        .immersive-translate-cancel-btn:hover {
            background-color: hsl(205, 20%, 32%);
        }


        .immersive-translate-btn svg {
            margin-right: 5px;
        }

        .immersive-translate-link {
            cursor: pointer;
            user-select: none;
            -webkit-user-drag: none;
            text-decoration: none;
            color: #007bff;
            -webkit-tap-highlight-color: rgba(0, 0, 0, .1);
        }

        .immersive-translate-modal input[type="radio"] {
            margin: 0 6px 16px;
            cursor: pointer;
        }

        .immersive-translate-modal label {
            cursor: pointer;
        }

        .immersive-translate-close-action {
            position: absolute;
            top: 2px;
            right: 0px;
            cursor: pointer;
        }
    </style>
</head>
<body>
<section class="aui-flexView">
    <header class="aui-navBar aui-navBar-fixed">
        <div class="aui-center">
            <span class="aui-center-title">意见反馈</span>
        </div>
        <a href="javascript:;" class="aui-navBar-item">
            <i class="icon icon-sys"></i>
        </a>
    </header>
    <section class="aui-scrollView">
        <div class="aui-view-box">
            <div class="aui-view-box-item">
                <h2>您的问题或建议:</h2>
                <textarea placeholder="输入个人意见反馈,字数在200字以内" id="content"></textarea>
            </div>
            <div class="aui-view-box-item">
                <p>谢谢大大的建议，我会越做越好的。</p>
            </div>
            <div class="aui-btn-submit">
                <button id="submit">提交建议</button>
            </div>
        </div>
    </section>
{{--    <footer class="aui-footer aui-footer-fixed">--}}
{{--        <p>--}}
{{--            <span>遇到问题了？ 点击 <em>在线客服</em></span>--}}
{{--        </p>--}}
{{--    </footer>--}}
</section>

</body>

<script src="/js/jquery-3.1.1.js"></script>

<script>
    var myButton = document.getElementById("submit");
    myButton.addEventListener("click", function() {
        var content = $("#content").val();
        var token =  "{{ csrf_token() }}";
        $.ajax({
            headers: {
                'X-CSRF-TOKEN':token,
            },
            url : "{{ route('feedback.feedback') }}",
            data : {'content' : content},
            type : 'POST',
            dataType : 'json',
            success : function(result){
                console.log(result)
                if(result.code==1){
                    alert(result.msg);
                    window.location.reload();
                }else{
                    alert(result.msg);
                }
            }
        });
    });
</script>

</html>
